package com.chenxin.wms.service.impl;

import com.chenxin.wms.domain.vo.IbMasterVO;
import com.chenxin.wms.mapper.IbMasterMapper;
import com.chenxin.wms.service.IIbMasterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 入库主单Service业务层处理
 *
 * @author gry
 * @date 2025-04-07
 */
@Service
public class IbMasterServiceImpl implements IIbMasterService {
    @Autowired
    private IbMasterMapper ibMasterMapper;

    @Override
    public List<IbMasterVO> selectIbMasterList(IbMasterVO ibMasterVo) {
        return ibMasterMapper.selectIbMasterViewList(ibMasterVo);
    }

    /**
     * 查询入库主单
     *
     * @param ibMasterId 入库主单主键
     * @return 入库主单
     */
    @Override
    public IbMasterVO selectIbMasterById(Long ibMasterId) {
        return ibMasterMapper.selectIbMasterViewById(ibMasterId);
    }
}
